<!--${_TPL.put("nosidebar", 1)}-->
<!--$embed{"header.htm"}-->
<script>
var setac = '${_SCONFIG['register_action']}';
</script>
<script language="javascript" type="text/javascript" src="${request.contextPath}/template/default/do_login.js"></script>

<form id="loginform" name="loginform" action="do.html?ac=${_SCONFIG['login_action']}&${url_plus}&ref" method="post" class="c_form">
<table cellpadding="0" cellspacing="0" class="formtable">
	<caption>
		<h2>请登录</h2>
		<p>如果您在本站已拥有帐号，请使用已有的帐号信息直接进行登录即可，不需重复注册。</p>
	</caption>
	<!--$if{ invitearr}-->
	<tr>
		<th width="100">好友邀请</th>
		<td>
			<a href="space.html?${url_plus}" target="_blank"><img src="<!--{com.heaven.web.utils.Common.avatar(invitearr['uid'],'small')}-->" alt="${_SN[invitearr['uid']]}" id="avatar" align="absmiddle" /></a>
			<a href="space.html?${url_plus}" target="_blank">${_SN[invitearr['uid']]}</a>
		</td>
	</tr>
	<!--$end-->
	<!--$if{ _SCONFIG['seccode_login'].toInteger}-->
	<!--$if{ _SGLOBAL['input_seccode'].toInteger}-->
	<tr>
		<th width="100">&nbsp;</th>
		<td>
		请通过下面的验证后，再提交登录
		</td>
	</tr>
	<!--$end-->
	<!--$if{ _SCONFIG['questionmode'] == '1'}-->
	<tr>
		<th width="100" style="vertical-align: top;">请先回答问题</th>
		<td>
			<p><!--${&com.heaven.web.utils.Common.question()}--></p>
			<input type="text" id="seccode" name="seccode" value="" tabindex="1" class="t_input"<!--$if{ !_SGLOBAL['input_seccode']}--> onBlur="checkSeccode()"<!--$end--> />&nbsp;<span id="checkseccode">&nbsp;</span>
		</td>
	</tr>
	<!--$else-->
	<tr>
		<th width="100" style="vertical-align: top;">验证码</th>
		<td>
			<script>seccode();</script>
			<p>请输入上面的4位字母或数字，看不清可<a href="javascript:updateseccode()">更换一张</a></p>
			<input type="text" id="seccode" name="seccode" value="" tabindex="1" class="t_input"<!--$if{ !_SGLOBAL['input_seccode']}--> onBlur="checkSeccode()"<!--$end--> />&nbsp;<span id="checkseccode">&nbsp;</span>
		</td>
	</tr>
	<!--$end-->
	<!--$end-->
	
	<tbody style="display:<!--$if{ _SGLOBAL['input_seccode'] == '1'}-->none<!--$end-->;">
	<tr><th width="100"><label for="username">用户名</label></th><td><input type="text" name="username" id="username" class="t_input" value="${membername}" tabindex="2" /></td></tr>
	<tr><th width="100"><label for="password">密　码</label></th><td><input type="password" name="password" id="password" class="t_input" tabindex="3" value="${password}" /></td></tr>
	<tr>
		<th width="100">&nbsp;</th>
		<td>
			<input type="checkbox" id="cookietime" name="cookietime" value="315360000" ${cookiecheck} style="margin-bottom: -2px;"><label for="cookietime">下次自动登录</label>
		</td>
	</tr>
	</tbody>
	<tr><th width="100">&nbsp;</th><td>
		<input type="hidden" name="refer" value="${refer}" />
		<input type="submit" id="loginsubmit" name="loginsubmit" value="登录" class="submit" tabindex="5" />
		<a href="do.html?ac=lostpasswd">忘记密码?</a>
	</td></tr>
</table>
<input type="hidden" name="formhash" value="<!--${&com.heaven.web.utils.Common.formhash()}-->" /></form>

<script type="text/javascript">
	
</script>

<!--$if{ _SGLOBAL['input_seccode']}-->
<script>
setFocus();
</script>
<!--$end-->


<div class="c_form">
<table cellpadding="0" cellspacing="0" class="formtable">
	<caption>
		<h2>还没有注册吗？</h2>
		<p>如果还没有本站的通行帐号，请先注册一个属于自己的帐号吧。</p>
	</caption>
	<tr>
		<td>
		<a href="do.html?ac=${_SCONFIG['register_action']}" style="display: block; margin: 0 110px 2em; width: 100px; border: 1px solid #486B26; background: #76A14F; line-height: 30px; font-size: 14px; text-align: center; text-decoration: none;"><strong style="display: block; border-top: 1px solid #9EBC84; color: #FFF; padding: 0 0.5em;">立即注册</strong></a>
		</td>
	</tr>
</table>	
	
</div>
<!--$embed{"footer.htm"}-->